<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>17_插件</title>
  </head>
  <body>
    <div id="app">
      <p v-upper-case="msg"></p>
    </div>
    <script type="text/javascript" src="../js/vue.js"></script>
    <script src="./MyPlugin.js"></script>
    <script type="text/javascript">
      Vue.use(MyPlugin)
      Vue.globalMethod()
      new Vue({
        el: '#app',
        data: {
          msg: 'Hello Evan You',
        },
        mounted() {
          this.$instanceMethod()
        },
      })
    </script>
  </body>
</html>
